-- GENERATED SPELL FOR [Mana Stalker] --


function spell0_15647(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(15798,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15647', 12000, 1)
end

function Sorts_15647(pUnit, Event)
local choix_sorts_15647 = math.random(0, 0)
if choix_sorts_15647 == 0 then
pUnit:RegisterEvent('spell0_15647', 1, 1)
end
end

function mob15647_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15647', math.random(1500, 3000), 1)
end

function mob15647_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15647_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15647_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15647, 1, 'mob15647_Action')
RegisterUnitEvent(15647, 2, 'mob15647_Leave')
RegisterUnitEvent(15647, 3, 'mob15647_Kill')
RegisterUnitEvent(15647, 4, 'mob15647_Die')
